Fix infloop in 'shell-resync-dirs'
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 Jul 2024 06:58:53 +0000 (09:58 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 Jul 2024 06:58:53 +0000 (09:58 +0300)
commit8b1a0f8695a43e74daa5275559267e96c14aba03
tree08989bf5ab0de5a06e438510a748c85f68db660c
parentce13eee5ab73e73ffd5d8e67a1dd21fc667ab7e1
Fix infloop in 'shell-resync-dirs'

* lisp/shell.el (shell-eval-command): Fix detection of newline
after last output line.  (Bug#71896)
(shell-resync-dirs): Make sure the inner loop never infloops.
Suggested by Troy Hinckley <troyhinckley@dabrev.com>.
lisp/shell.el